package start.spring.basic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * <p>
 * 分布式id生成器工作节点表
 * </p>
 *
 * @author xyy
 * @since 2021-04-12
 */
@Data
@TableName("WORKER_NODE")
public class WorkerNode implements Serializable {

	private static final long serialVersionUID = 4260126287714495302L;

    private long id;

    @TableField("HOST_NAME")
    private String hostName;

    @TableField("PORT")
    private String port;

    @TableField("TYPE")
    private Integer type;

    @TableField("LAUNCH_DATE")
    private Date launchDate;

    @TableField("MODIFIED")
    private Date modified;

    @TableField("CREATED")
    private Date created;

	@Override
	public String toString() {
		return "WorkerNode [id=" + id + ", hostName=" + hostName + ", port=" + port + ", type=" + type + ", launchDate="
				+ launchDate + ", modified=" + modified + ", created=" + created + "]";
	}
}
